package com.mxl.rabbitmq.consumer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.time.LocalTime;

/**
 * 死信队列 消费者
 * @author MXL
 * @date 2022/2/7
 **/
@Component
@Slf4j
public class TTLConsumer {

//    @RabbitListener(queues = TTLConfig.TTL_QUEUE_NAME)
    public void handle(String msg) {
        log.info("单条消息延迟: {}秒, 内容:{}", LocalTime.now(), msg);
    }
}
